<?php $elements = $menu->getElements(); ?>
<ul id="menu">
    	<?php foreach($elements as $index => $element): ?>
	<li class="<?php echo ($element->isActive() && $element->getParameter() != 'index') ? 'active' : '' ?>"><a href="<?php echo $element->getLink() ?>"><?php echo $element->getName() ?></a></li>
	<?php endforeach; ?>
</ul>
